package com.example;

import com.example.entity.bo.CourseStudentResultBO;
import com.example.service.DepartmentService;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class Department {
    @Autowired
    private DepartmentService departmentService;

    private final Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());

    @Test
    public void testCourseResult() {
        List<CourseStudentResultBO> results = departmentService.getCourseStudentResultByIdAndCourseId("03", "006A1310");
        for (CourseStudentResultBO result : results) {
            logger.info(result.toString());
        }
    }
}
